import { RouteRecordRaw } from 'vue-router'

export default [
   {
      path: '/',
      component: () => import('../layout/index.vue'),
      children: [
         {
            name: 'home',
            path: '',
            component: () => import('../view/home/index.vue')
         },
         {
            name: 'user',
            path: 'user',
            component: () => import('../view/users/index.vue')
         },
         {
            name: 'article',
            path: 'article',
            component: import('../view/article/index.vue')
         },
         {
            name: 'comment',
            path: 'comment',
            component: import('../view/comment/index.vue')
         },
         {
            name: 'location',
            path: 'location',
            component: import('../view/location/index.vue')
         },
         {
            name: 'ArticleDetail',
            path: '/articleDetail/:id',
            component: import('../view/article/detail.vue')
         },
         {
            name: 'category',
            path: '/category',
            component: import('../view/category/index.vue')
         }
      ]
   }
] as RouteRecordRaw[]
